package com.touchstone.cloudpacs.controller;

import com.touchstone.cloudpacs.common.utils.result.ResultEnum;
import com.touchstone.cloudpacs.common.utils.result.ResultVO;
import com.touchstone.cloudpacs.enums.StatusEnum;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 本控制层返回各枚举类数据
 * @Author: hunter
 * @Date:2019-07-12 11:53
 */
@RestController
@RequestMapping("/enum")
@Api(description = "枚举常量", tags = "枚举常量")
public class EnumController {

    @GetMapping("/result")
    @ApiOperation(value = "返回状态列表", notes = "返回状态列表")
    public ResultVO resultList() {
        return ResultVO.success(ResultEnum.getOptionDTOList());
    }

    @GetMapping("/status")
    @ApiOperation(value = "数据状态列表", notes = "数据状态列表")
    public ResultVO statusList() {
        return ResultVO.success(StatusEnum.getOptionDTOList());
    }

}
